
<?php 

    ///Передаем массивы стран и языков    
    $arrc = sfCultureInfo::getInstance(sfContext::getInstance()->getUser()->getCulture())->getCountries();
    $arrl = sfCultureInfo::getInstance(sfContext::getInstance()->getUser()->getCulture())->getLanguages();    
    ////

?>

 <?php $cnt = 0; ?> 

		<?php  if (isset($pager_top)): ?>
		    <?php include_partial('global/common/'.sfConfig::get('app_name').'/pager', array('pager'=>$pager)) ?>
		<?php  endif; ?>


                    
            <?php if(isset($tmpl_sort)):?>     
            <?php if(file_exists(sfConfig::get('sf_app_dir').'/modules/'.$sf_request->getParameter('module').'/templates/_tmpls/'.$tmpl_sort.'.php')):?>        
		       <?php include_partial($sf_request->getParameter('module').'/tmpls/'.$tmpl_sort,array('order'=>$order,'sort'=>$sort)) ?>
		    <?php else: ?>	    
				<?php include_partial('zdLister/tmpls/'.$tmpl_sort,array('order'=>$order,'sort'=>$sort)) ?>
		    <?php endif ?>
		    <?php endif ?>
                    

			<?php if (isset($show_abc)): ?>
			<?php include_component('zdLister','showabc') ?>
			<?php endif ?>

                    

	<?php if ($pager->getResults()): ?>
		
		<?php if (isset($tmpl_header)): ?>
			<?php include_partial('zdLister/tmpls/'.$tmpl_header) ?>	
		<?php endif; ?>
		
		<?php if(!isset($style_block)):?>
		<table width="100%" class="table_list_mat" >
		<?php endif ?>
		
		   <?php if(isset($colls)):?><tr><?php endif ?>
		
		    <?php if(file_exists(sfConfig::get('sf_app_dir').'/modules/'.$sf_request->getParameter('module').'/templates/_tmpls/'.$tmpl_name.'.php')):?>   
		   
		    <?php foreach ($pager->getResults() as $v): ?>
		    
		   
		   		<?php if(isset($colls) and $cnt==$colls):?>
				 </tr><tr>
				 <?php $cnt=0; ?>
				 <?php endif ?>
				 
		       <?php include_partial($sf_request->getParameter('module').'/tmpls/'.$tmpl_name, array('v'=>$v,'arrc'=>$arrc,'arrl'=>$arrl)) ?>
		       
               <?php $cnt++; ?>
		       
		     <?php endforeach; ?>  
		    <?php else: ?>
		    <?php foreach ($pager->getResults() as $v): ?>
		         
				
				
		   		<?php if(isset($colls) and $cnt==$colls):?>
				 </tr><tr>
				 <?php $cnt=0; ?>
				 <?php endif ?>
				 
				 <?php include_partial('zdUserLister/tmpls/'.$tmpl_name, array('v'=>$v,'arrc'=>$arrc,'arrl'=>$arrl)) ?>
				 
				<?php $cnt++; ?>
				
		    <?php endforeach; ?>
		    <?php endif ?>
          
         
       
           <?php if(isset($colls)):?></tr><?php endif ?>
       
       
        <?php if(!isset($style_block)):?>
		</table>
		<?php endif ?>
		
		  <?php if(isset($style_block)):?>
		<div class="clear"></div>
		<?php endif ?>
       
		<?php if (!isset($show_pager) or $show_pager!=false): ?>
		    <?php include_partial('global/common/'.sfConfig::get('app_name').'/pager', array('pager'=>$pager)) ?>
		<?php endif; ?>
		
		<?php if (isset($tmpl_footer)): ?>
			<?php include_partial('zdLister/tmpls/'.$tmpl_footer) ?>	
		<?php endif; ?>
		
	<?php else: ?>
	
	<center> <font color="red" class="size11"><?php echo __('Результатов не найдено') ?></font> </center>
		
	<?php endif; ?>
	

	







